<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%
	String hotel_id		= StringUtil.nvl(request.getParameter("hotel_id"));
	String land_code	= StringUtil.nvl(request.getParameter("land_code"));

	HashMap param = new HashMap();
	param.put("hotel_id", hotel_id);


	HomeDAO dao = new HomeDAO();

	HashList list 		= dao.selectHotelList(param);
	HashList roomList	= dao.selectRoomPriceList(param);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%= HOME_NAME %></title>
<%@ include file="/home/include/cssnjs.jsp"  %>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <%@ include file="/home/include/top_menu.jsp" %>
  <tr>
    <td valign="top" align="center" class="sub_con"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      <!--좌측네비 시작-->
        <%@ include file="/home/include/left_menu.jsp" %>
        <!--좌측네비 끝-->
        <td width="50"></td>
        <!--컨텐츠 시작-->
        <td valign="top" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="../images/sub/02_title_01.gif" alt="할인호텔" width="99" height="31" /><img src="../images/sub/02_title_sub.gif" width="266" height="18" /></td>
                <td align="right" valign="bottom"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" colspan="3"><img src="../images/sub/sub_line.gif"  height="5" /></td>
          </tr>
          <tr>
            <td height="30" colspan="3"></td>
          </tr>
          <tr>
            <td colspan="3" class="sub_top_line"></td>
          </tr>
          <tr>
            <td ></td>
            <td width="721"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="6"></td>
              </tr>
              <tr>
                <td class="sub_title"><%= list.get("hotel_kor_name",0) %> <span class="remark"><%= list.get("hotel_eng_name", 0) %></span></td>
              </tr>
			  <tr height="20px"><td></td></tr>
              <tr>
                <td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="260">
							<img src="<%= list.get("img_path_00",0) %>" width="260" height="180" style="border:3px solid #dddddd"/>
						</td>
                        <td valign="top" style="padding-left:20px">
							<table border="0" cellspacing="0" cellpadding="0">
							<tr>
							  <td width="70" style="font-size: 13px; line-height:22px; font-weight:bold;">주 &nbsp;&nbsp;&nbsp; 소 :</td>
							  <td><%= list.get("addr",0) %></td>
							</tr>
							<tr>
							  <td style="font-size: 13px;  line-height:22px; font-weight:bold;">전 &nbsp;&nbsp;&nbsp; 화 :</td>
							  <td><%= list.get("tel_no",0) %></td>
							</tr>
							<tr>
							  <td style="font-size: 13px;  line-height:22px; font-weight:bold;">팩 &nbsp;&nbsp;&nbsp; 스 :</td>
							  <td><%= list.get("fax_no",0) %></td>
							</tr>
							<tr>
							  <td style="font-size: 13px;  line-height:22px; font-weight:bold;">등 &nbsp;&nbsp;&nbsp; 급 :</td>
							  <td><%= list.get("hotel_grade",0) %></td>
							</tr>
					<%	if (!"".equals(list.get("location",0))) { %>
							<tr>
							  <td style="font-size: 13px;  line-height:22px; font-weight:bold;">프로모션 : </td>
                              <td style="color:purple">  <%= list.get("location",0) %></td>
							</tr>
					<%	} %>
						    </table>
						</td>
                      </tr>
                    </table>
				  </td>
				</tr>

				<tr height="20px"><td></td></tr>

				<tr>
				<td valign="top" bgcolor="#2b2b2e">

                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>
                    	<table id="air_list" width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:4px solid #2b2b2e">
                    	  <tr height="32">
                    	  	<th align="center" width="160"><img src="../images/sub/02_txt_04.gif" alt="비고"  /></th>
                    	  	<th align="center"><img src="../images/sub/02_txt_01.gif" alt="객실타입" width="52" height="14" /></th>
                    	  	<th align="center" width="180"><img src="../images/sub/02_txt_02.gif" alt="기간" width="30" height="14" /></th>
                    	  	<th align="center" width="80"><img src="../images/sub/02_txt_03.gif" alt="요금" width="31" height="14" /></th>
                    	  </tr>
          <%		if (roomList.size() == 0) {	%>
          				  <tr height="50">
          				  	<td colspan="4" align="center" style="background-color:#ffffff">현재 진행중인 요금이 없습니다.</td>

          				  </tr>
          <%		} %>


          <% for (int i = 0; i < roomList.size(); i++) {	%>

          				  <tr >
                            <td align="center" style="padding:6px; text-align:center; background-color:#ffffff">
                            <%	if (!"일반요금".equals(roomList.get("room_desc",i))) { %>
                            		<b><%= roomList.get("room_desc", i) %></b>
                            <%	} else { %>
                            		<%= roomList.get("room_desc", i) %>
                            <%	} %>
                            </td>
                            <td style="padding:6px; text-align:left; background-color:#ffffff"><%= roomList.get("room_name", i) %></td>
                            <td align="center" style="padding:6px; text-align:center; background-color:#ffffff"><%= StringUtil.toDate(roomList.get("from_date",i)) %> ~ <%= StringUtil.toDate(roomList.get("to_date",i)) %></td>
                            <td align="center" style="padding:6px; text-align:center; background-color:#ffffff">$<%= StringUtil.toPrice(roomList.get("sales_price",i)) %></td>

                          </tr>

          <%		}	 %>
                        </table>
                        <script>
				            	func_row_merge_Item(air_list, 1, 2);
				            	func_row_merge_Item(air_list, 1, 1);
				            	func_row_merge_Item(air_list, 1, 0);
				            </script>
					</td>
                  </tr>
                </table></td>
              </tr>

			  <tr height="20px"><td></td></tr>

			  <tr>
			    <td>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0">

           <%	if (!"".equals(list.get("hotel_cond",0))) { %>
                      <tr>
                        <td class="sub_title_02"><img src="../images/sub/con_txt_001_01.gif" alt="호텔규정"  /></td>
                      </tr>
                      <tr>
                      <!--호텔규정 영역-->
                        <td style="padding-top:10px"><%= list.get("hotel_cond",0) %></td>
                      </tr>
                      <tr>
                        <td height="40"></td>
                      </tr>
           	<%	} %>

			<%	if (!"".equals(list.get("hotel_info",0))) { %>
                      <tr>
                        <td class="sub_title_02"><img src="../images/sub/con_txt_001_02.gif" alt="호텔정보" /></td>
                      </tr>
                      <tr>
                      <!--호텔정보 영역-->
                        <td style="padding-top:10px"><%= list.get("hotel_info",0) %></td>
                      </tr>
                      <tr>
                        <td height="40"></td>
                      </tr>
          	<%	} %>

			<%	if (!"".equals(list.get("hotel_room",0))) { %>
                      <tr>
                        <td class="sub_title_02"><img src="../images/sub/con_txt_001_03.gif" alt="객실정보" /></td>
                      </tr>
                      <tr>
                      <!--객실정보 영역-->
                        <td style="padding-top:10px"><%= list.get("hotel_room",0) %></td>
                      </tr>
                      <tr>
                        <td height="40"></td>
                      </tr>
          	<%	} %>

			<%	if (!"".equals(list.get("hotel_envi",0))) { %>
                      <tr>
                        <td class="sub_title_02"><img src="../images/sub/con_txt_001_04.gif" alt="부대시설"  /></td>
                      </tr>
                      <tr>
                      <!--부대시설 영역-->
                        <td style="padding-top:10px"><%= list.get("hotel_envi",0) %></td>
                      </tr>
                      <tr>
                        <td height="40"></td>
                      </tr>
          	<%	} %>

			<%	if (!"".equals(list.get("hotel_etc",0))) { %>
                       <tr>
                        <td class="sub_title_02"><img src="../images/sub/con_txt_007.gif" alt="기타"  /></td>
                      </tr>
                      <tr>
                      <!--레스토랑정보 영역-->
                        <td style="padding-top:10px"><%= list.get("hotel_etc",0) %></td>
                      </tr>
                      <tr>
                        <td height="40"></td>
                      </tr>
          	<%	} %>


                      <!--객실 이미지 시작-->
					   <tr>
                        <td class="sub_title_02"><img src="../images/sub/con_txt_005.gif" alt="포토갤러리"  /></td>
                      </tr>
                      <tr>
                        <td><%= list.get("hotel_pic",0) %></td>
                      </tr>
                      <!--객실이미지 끝-->
                    </table>
				</td>
			</tr>




              <tr>
                <td height="30"></td>
              </tr>
            </table></td>
            <td ></td>
          </tr>
          <tr>
            <td height="60" colspan="3"></td>
          </tr>
        </table></td>
        <!--컨텐츠 끝-->
      </tr>
    </table></td>
  </tr>
  <%@ include file="/home/include/footer.jsp" %>
</table>
</body>
</html>

